.class public Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;
.super Lcom/estrongs/android/pop/esclasses/ESScrollView;
.source "ESScrollMenuView.java"


# instance fields
.field private e:Landroid/content/Context;

.field f:Les/cz;

.field private g:Z

.field private h:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESScrollView;-><init>(Landroid/content/Context;)V

    const v0, 0x7f09040a

    .line 2
    iput v0, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->h:I

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->e:Landroid/content/Context;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 4
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/pop/esclasses/ESScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const p2, 0x7f09040a

    .line 5
    iput p2, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->h:I

    .line 6
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->e:Landroid/content/Context;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 7
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/pop/esclasses/ESScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const p2, 0x7f09040a

    .line 8
    iput p2, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->h:I

    .line 9
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->e:Landroid/content/Context;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->f:Les/cz;

    if-eqz v0, :cond_0

    .line 10
    invoke-virtual {v0}, Les/kz;->h()V

    :cond_0
    const/4 v0, 0x0

    .line 11
    iput-object v0, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->f:Les/cz;

    return-void
.end method

.method public a(Les/v00;Landroid/view/MenuItem$OnMenuItemClickListener;)V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->f:Les/cz;

    const/4 v1, 0x1

    if-nez v0, :cond_1

    .line 2
    new-instance v0, Les/cz;

    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->e:Landroid/content/Context;

    invoke-direct {v0, v2, v1}, Les/cz;-><init>(Landroid/content/Context;Z)V

    iput-object v0, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->f:Les/cz;

    .line 3
    iget-boolean v2, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->g:Z

    invoke-virtual {v0, v2}, Les/cz;->b(Z)V

    .line 4
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v0, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 5
    iget v2, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->h:I

    invoke-virtual {p0, v2}, Landroid/widget/ScrollView;->findViewById(I)Landroid/view/View;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 6
    check-cast v2, Landroid/widget/LinearLayout;

    iget-object v3, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->f:Les/cz;

    invoke-virtual {v3}, Les/my;->e()Landroid/view/View;

    move-result-object v3

    invoke-virtual {v2, v3, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 7
    :cond_0
    iget-object v2, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->f:Les/cz;

    invoke-virtual {v2}, Les/my;->e()Landroid/view/View;

    move-result-object v2

    invoke-virtual {p0, v2, v0}, Landroid/widget/ScrollView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 8
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->f:Les/cz;

    invoke-virtual {p1, p2}, Les/v00;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Les/v00;

    invoke-virtual {v0, p1, v1}, Les/cz;->a(Les/v00;Z)V

    return-void
.end method

.method public setPanelViewId(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->h:I

    return-void
.end method

.method public setShowIcon(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/pop/esclasses/ESScrollMenuView;->g:Z

    return-void
.end method
